<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePicturesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pictures', function (Blueprint $table) {
//            $table->engine('innoDB');
            $table->engine = 'InnoDB';
            $table->increments('id');

            $table->string('picture_title')->comment('图片标题');
            $table->string('picture_title2')->comment('简略标题');
            $table->string('picture_cate')->comment('分类');
            $table->string('picture_sort')->comment('排序');
            $table->string('picture_author')->comment('图片作者');
            $table->string('picture_come')->comment('图片来源');
            $table->string('picture_key')->comment('关键词');
            $table->string('picture_dec')->comment('图片摘要');
            $table->string('logo')->comment('文件上传');
            $table->string('logo_picutre')->comment('缩略图');

            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('pictures');
    }
}
